package com.qingke.easyjava;

public class DemoBean {
	private String name = "no one";
	
	private int id = 0;
	
	private double height = 172.0;
	
	public DemoBean(){
		
	}
	
	public DemoBean(String name,int id,double height){
		this.name = name;
		this.id = id;
		this.height = height;
	}
	
	public void sayHello(){
		System.out.println("hello,"+name);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public double getHeight() {
		return height;
	}

	public void setHeight(double height) {
		this.height = height;
	}

	@Override
	public String toString() {
		return "DemoBean [name=" + name + ", id=" + id + ", height=" + height + "]";
	}


	
	
}
